#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>
#include<stdlib.h>
int main() 
{
	int i, n;
	double max, min, sum = 0;
	scanf("%d", &n);
	double a[n];
	double* ave = (double*)malloc(n * sizeof(double));
	for (i = 0; i < n; i++) 
	{
		scanf("%lf", &a[i]);
	}
	for (i = 0; i < n; i++) 
	{
		sum = a[i] + sum;
		if (i == 0)max = min = a[i];
		if (a[i] > max)max = a[i];
		if (a[i] < min)min = a[i];
	}
	printf("average = %.2lf\n", sum / i);
	printf("max = %.2lf\n", max);
	printf("min = %.2lf\n", min);
	free(0);
}